/**
 * Created by 小敏哥 on 2017/8/25.
 */
/**
 * Created by 小敏哥 on 2017/8/21.
 */
import {
    UPLOAD_RESULT
} from "../actions/actionsTypes"

const init={
    uploadResult: {
        requirementType: 'OTHER',
        status: -1,
        remark: '',
        imgUrl: '',
        imgSecUrl: '',
    }
};

export default function uploadResultReducer(state = init, action) {
    switch (action.type) {
        case UPLOAD_RESULT:
            return Object.assign({}, state, {uploadResult: action.data});
        default:
            return state;
    }
}